package com.zim.ta_service.base.sequence.generator;

import cn.hutool.core.lang.UUID;
import com.zim.ta_service.base.exception.BizMsgException;

/**
 * UUID序列号
 * @author alabimofa
 */
public class UuidGenerator implements IGenerator {

    @Override
    public Long nextId() {
        throw new BizMsgException("Uuid不能生成Long类型的序列号");
    }

    @Override
    public String nextIdString() {
        return UUID.fastUUID().toString(true);
    }
}
